import request from '@/utils/request'

// 查询泳池核销流水单列表
export function listOff(query) {
  return request({
    url: '/system/off/list',
    method: 'get',
    params: query
  })
}

// 查询泳池核销流水单详细
export function getOff(id) {
  return request({
    url: '/system/off/' + id,
    method: 'get'
  })
}

// 新增泳池核销流水单
export function addOff(data) {
  return request({
    url: '/system/off',
    method: 'post',
    data: data
  })
}

// 修改泳池核销流水单
export function updateOff(data) {
  return request({
    url: '/system/off',
    method: 'put',
    data: data
  })
}

// 删除泳池核销流水单
export function delOff(id) {
  return request({
    url: '/system/off/' + id,
    method: 'delete'
  })
}

// 导出泳池核销流水单
export function exportOff(query) {
  return request({
    url: '/system/off/export',
    method: 'get',
    params: query
  })
}